package com.carey.yygh.cmn.client;

import com.carey.yygh.model.user.Patient;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-cmn")
@Repository
public interface DictFeignClient {
    /**
     * 获取数据字典名称
     * @param DictCode
     * @param value
     * @return
     */
    @GetMapping(value = "/admin/cmn/dict/getName/{DictCode}/{value}")
    String getName(@PathVariable("DictCode") String DictCode, @PathVariable("value") String value);

    /**
     * 获取数据字典名称
     * @param value
     * @return
     */
    @GetMapping(value = "/admin/cmn/dict/getName/{value}")
    String getName(@PathVariable("value") String value);


}
